<?php

$ruta=$_SERVER['DOCUMENT_ROOT']."/viventura"."/MDTour";
include_once("$ruta/conf/CConfig.php");
include_once("$ruta/MDTourGeneral/CDrawPageReg.php");
include_once("$ruta/MDTourGeneral/CTourEditDraw.php");


$idBussines = $_POST['variable'];
$bussinesType = $_POST['temp'];

//echo $idBussines;
//echo $bussinesType;
//CDrawPageReg::getInstance()->DrawSelect($table,$campos,$label,$id);

if($bussinesType==1){ //operador
    echo "dshdfh";
    
    $actividades=array('IdActPaxTour','actividades_idAct');
    CTourEditDraw::getInstance()->DrawMultipleFilter("actividades_has_tour_has_pasajero",$actividades,"Servicios del operador","where operador_idOpe=$idBussines");

    $operador = array("idOpe"=>"idOpe", "NamOpe"=>"NamOpe");
    CDrawPageReg::getInstance()->DrawSelectFilter("operador", $operador, "Operador","idOpe"," where idOpe = $idBussines");
}


if($bussinesType==2){ //guia
    $guide=array("idPackTourGui"=>"idPackTourGui","DesSer"=>"DesSer");
    CDrawPageReg::getInstance()->DrawSelectFilter("pack_has_tour_has_guidetc", $guide, "Servicio" ,"idGuide"," where guidetc_idGuide = $idBussines and SerFlag='1'");
}

if($bussinesType==3){ //restaurante
    $restaurant=array("ResPackTour"=>"ResPackTour","DesSer"=>"DesSer");
    CDrawPageReg::getInstance()->DrawSelectFilter("restaurant_has_pack_has_tour",$restaurant,"Servicio","idRest", " where restaurant_idRest = $idBussines and SerFlag='1'");    
}

if($bussinesType==4){ //transporte
   $transporte=array("TranPackTour"=>"TranPackTour","DesSer"=>"DesSer");
    CDrawPageReg::getInstance()->DrawSelectFilter("transporte_has_pack_has_tour",$transporte,"Servicio","idTrans", " where transporte_idTrans = $idBussines and SerFlag='1'");    
}




?>